import React, { Component } from 'react'
import routes from './router/routerConfig'//自己封装好的路由表
import RouterView from './router/RouterView'//自己封装的路由组件
import {BrowserRouter as Router} from "react-router-dom"
export class App extends Component {
  render() {
    return (
      <Router>
        {/* 使用父传子传入自己封装的路由组件 */}
        <RouterView routes={routes}/> 
      </Router>
    )
  }
}

export default App
